package com.dr.entity;
/**
 * 订单信息
 * @author 宋雪晗
 *
 */
public class Orderinfo {
    private String orderId;

    private Integer user_id;

    private Double money;

    private Integer status;
    private String statusName;//发货中文名

    private String name;//收货人名称

    private String phone;

    private String province;

    private String city;

    private String area;

    private String addressInfo;//详细的地址信息

    private String mark;//订单的备注

    private Double logisticsMoney;//订单的物流运费

    private String logisticsName;//订单的物流名称

    private String logisticsMessage;//订单的物流信息

    private String createTime;

    private String paymentTime;//付款时间

    private String deliveryTime;//发货时间

    private String finishTimeTime;//成交时间/完成时间/结束时间/确认收货时间
    private String imgMain;

    private Integer page;
	private Integer limit;
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
	public Double getMoney() {
		return money;
	}
	public void setMoney(Double money) {
		this.money = money;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getStatusName() {
		String name="";
		if (status ==0) {
			name = "待付款";
		}else if(status ==1){
			name = "待发货";
		}else if(status ==2){
			name = "待收货";
		}else if (status ==3){
			name = "待评价";
		}else if (status ==4){
			name = "完成订单";
		}
		return name;
	}
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getAddressInfo() {
		return addressInfo;
	}
	public void setAddressInfo(String addressInfo) {
		this.addressInfo = addressInfo;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
	public Double getLogisticsMoney() {
		return logisticsMoney;
	}
	public void setLogisticsMoney(Double logisticsMoney) {
		this.logisticsMoney = logisticsMoney;
	}
	public String getLogisticsName() {
		return logisticsName;
	}
	public void setLogisticsName(String logisticsName) {
		this.logisticsName = logisticsName;
	}
	public String getLogisticsMessage() {
		return logisticsMessage;
	}
	public void setLogisticsMessage(String logisticsMessage) {
		this.logisticsMessage = logisticsMessage;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getPaymentTime() {
		return paymentTime;
	}
	public void setPaymentTime(String paymentTime) {
		this.paymentTime = paymentTime;
	}
	public String getDeliveryTime() {
		return deliveryTime;
	}
	public void setDeliveryTime(String deliveryTime) {
		this.deliveryTime = deliveryTime;
	}
	public String getFinishTimeTime() {
		return finishTimeTime;
	}
	public void setFinishTimeTime(String finishTimeTime) {
		this.finishTimeTime = finishTimeTime;
	}
	public String getImgMain() {
		return imgMain;
	}
	public void setImgMain(String imgMain) {
		this.imgMain = imgMain;
	}
	public Integer getPage() {
		if (page==null) {
			return 0;
		}else {
			return (page-1)*limit;
		}
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getLimit() {
		if (limit==null) {
			return 10;
		}else {
			return limit;
		}
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
}